import upload from '@/utils/upload'
import request from '@/utils/request'

// 获取商品分类
export function getCategoryList(data) {
  return request({
    url: '/system/category/listAll',
    method: 'get',
    data:data
  })
}
// 获取商品
export function getBatchListAll(data) {
  return request({
    url: '/system/batch/getBatchListAll',
    method: 'get',
    data:data
  })
}

// 新增/修改订单商品
export function updateOrderProducts(data) {
  return request({
    url: '/system/order/updateOrderProducts',
    method: 'put',
    data:data
  })
}
